<!DOCTYPE html>
<html style="font-size: 23.4375px;">
<head>
    <include file="./public/header.html"/>
    <style>
        a{
            margin: 0 auto;
        }
        #huizeng{
            display:block;
            text-align: center;
            width: 300px;
            height: 40px;
            line-height:40px;
            background: orange;
            color: white;
            border-radius: 2px;
            box-shadow: 0 5px 0 0 lightgrey;
        }
        .disable {
            background: #d6d6d6 !important;
            color: #999 !important;
        }
    </style>
</head>
<body style="font-size: 21.7589px;">
<div id="app">
    <div id="shadow" style="display: none;"></div>
    <header class="top"><span style="display: none;">加载中...</span> <span>晋级奖励</span> <!---->
        <div class="iconfont back" style="display: none;"></div>
        <a href="{:U('Index/activity')}" class="iconfont back"></a>
    </header>

    <div data-v-3cbfc35c="" class="activityMian main" s="[object Object]">
        <input type="hidden" id="uid" value="{$id}">
        <div data-v-3cbfc35c="" class="activiTop"><img data-v-3cbfc35c="" alt="" width="100%" src="/style/images/sjchongzhi.png">

            <div data-v-128082f2="" class="rewardStatus">
                <em data-v-128082f2="" class="e1">充值金额：
                    <i data-v-128082f2=""><?php if($chongzhi['level']==''){echo '未登录';}else{echo $shou_money;} ?></i>
                </em>
                <em data-v-128082f2="" class="e3">回赠金额：
                    <i data-v-128082f2="">
                        <input type="text" value="<?php if($huizeng==0){echo '0.00';}else{echo $huizeng;} ?>" class="huizeng" style="border: hidden;color: orangered;width: 60px" readonly>
                    </i>
                </em>

            </div>
            <div id="cen">
                <a data-v-5be8b080="" href="javascript:;" id="huizeng" class="<?php if($chongzhi['is_lingqu']!='0'){echo 'disable';} ?> dianji11" >
                    领取
                </a>
            </div>
        </div>
        <h3 data-v-3cbfc35c="">回赠比例</h3>
        <table data-v-3cbfc35c="">
            <tbody><tr data-v-3cbfc35c="">
                <th data-v-3cbfc35c="">等级</th>
                <th data-v-3cbfc35c="">回赠比例（100 +）</th>
            </tr>
            <tr data-v-128082f2="">
                <td data-v-128082f2="">VIP3</td>
                <td data-v-128082f2="">0.6%</td>
            </tr>
            <tr data-v-128082f2="">
                <td data-v-128082f2="">VIP4</td>
                <td data-v-128082f2="">0.7%</td>
            </tr>
            <tr data-v-128082f2="">
                <td data-v-128082f2="">VIP5</td>
                <td data-v-128082f2="">0.8%</td>
            </tr>
            <tr data-v-128082f2="">
                <td data-v-128082f2="">VIP6</td>
                <td data-v-128082f2="">0.9%</td>
            </tr>
            <tr data-v-128082f2="">
                <td data-v-128082f2="">VIP7</td>
                <td data-v-128082f2="">1.0%</td>
            </tr>
            <tr data-v-128082f2="">
                <td data-v-128082f2="">VIP8</td>
                <td data-v-128082f2="">1.1%</td>
            </tr>
            <tr data-v-128082f2="">
                <td data-v-128082f2="">VIP9</td>
                <td data-v-128082f2="">1.2%</td>
            </tr>
            </tbody></table>
        <h3 data-v-3cbfc35c="">活动说明</h3>

        <div data-v-3cbfc35c="" class="wrapExplain"> <p>
            1、充值100元起开始即回馈；
           </p>

            <p>
                2、vip3送0.6%、vip4送0.7%、vip5送0.8%、vip6送0.9%、vip7送1.0%、vip8送1.1%、vip9送1.2%；
            </p>
        </div>
    </div>
    <!--弹框 begian-->
    <div id="dengji" class="layermbox layermbox0 layermshow" index="10" style="display: none">
        <div class="laymshade"></div>
        <div class="layermmain">
            <div class="section">
                <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                    <button class="layermend"></button>
                    <div class="layermcont">-请登录-</div>
                    <div class="layermbtn"><span type="1">确定</span></div>
                </div>
            </div>
        </div>
    </div>
    <!--弹框 end-->
    <!--弹框 begian-->
    <div id="ssc2" class="layermbox layermbox0 layermshow" index="10" style="display: none">
        <div class="laymshade"></div>
        <div class="layermmain">
            <div class="section">
                <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                    <button class="layermend"></button>
                    <div class="layermcont">
                        <p>1.该次充值的回赠奖金已经领取</p>
                        <p>2.充值的金额未满100元</p>
                    </div>
                    <div class="layermbtn"><span type="1">确定</span></div>
                </div>
            </div>
        </div>
    </div>
    <!--弹框 end-->
    <!--弹框 begian-->
    <div id="lingqu31" class="layermbox layermbox0 layermshow" index="10" style="display: none">
        <div class="laymshade"></div>
        <div class="layermmain">
            <div class="section">
                <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                    <button class="layermend"></button>
                    <div class="layermcont">领取成功
                        <p>
                            金额为：<input type="text"  class="rrr" style="border: hidden;color: orangered;width: 60px" readonly>
                        </p>

                    </div>
                    <div class="layermbtn"><span type="1">确定</span></div>
                </div>
            </div>
        </div>
    </div>
    <!--弹框 end-->
</div>
</body>
</html>
<script>
    $(".layermbtn").click(function(){
        $(".layermbox").hide();
    });
    //充值回赠
    var huizeng = $(".huizeng").val();
    if(huizeng==0.00){
        $(".dianji11").addClass("disable");
    }

    $(".dianji11").click(function () {
        var uid = $("#uid").val();
        if(uid==''){
            $("#dengji").show();
            return false;
        }
        var huizeng = $(".huizeng").val();
        var type = 5;

        if($("#huizeng").hasClass("disable")){
            $("#ssc2").show();
            return false;
        }else {
            $.ajax({
                type: "POST",
                url: "{:U('Index/chongzhihuizeng')}",
                data: {'huizeng': huizeng, 'type': type},
                success: function (dat) {
                    if(dat==12){
                        $("#ssc2").show();
                        $(".dianji11").addClass("disable");
                        return false;
                    }
                    var dat1 = dat;

                    var aaa1 = parseInt(dat1.substring(0,1));
                    var bbb1 = dat1.substr(1);
                    $(".rrr").val(bbb1);
                    if (aaa1 == 1) {
                        $(".dianji11").addClass("disable");
                        $("#lingqu31").show();
                    }
                }
            });
        }
    });


</script>